import { Base } from '../../utils/base.js'; //调用基类的时候 
// 步骤1.import { Base } from '../../utils/base.js';
//     2. extends Base
//     3.constructor(){
//       super();
//     }

class Index extends Base {
  constructor() {
    super();
  } //首页改版特价抢购


  getSpecialPrice(dizhi, latitude, longitude, callBack) {
    var params = {
      url: 'getSpecialPrice?dizhi=' + dizhi + '&latitude=' + latitude + '&longitude=' + longitude,
      sCallBack: function (res) {
        callBack && callBack(res);
      }
    };
    this.request(params);
  } //首页改版热门推荐


  getHomeList(type, city, head, tail, latitude, longitude, callBack) {
    var params = {
      url: 'getHomeList?type=' + type + '&city=' + city + '&head=' + head + '&tail=' + tail + '&latitude=' + latitude + '&longitude=' + longitude,
      sCallBack: function (res) {
        callBack && callBack(res);
      }
    };
    this.request(params);
  } //轮播图


  getBannerData(wxprovince, callBack) {
    var params = {
      url: 'banner?wxprovince=' + wxprovince,
      sCallBack: function (res) {
        callBack && callBack(res);
      }
    };
    this.request(params);
  } //存入用户地址


  getdizhi(dizhi, province, callBack) {
    var params = {
      url: 'getdizhi?dizhi=' + dizhi + '&province=' + province,
      sCallBack: function (res) {
        callBack && callBack(res);
      }
    };
    this.request(params);
  } //查询用户地址


  getwxdizhi(callBack) {
    var params = {
      url: 'getwxdizhi',
      sCallBack: function (res) {
        callBack && callBack(res);
      }
    };
    this.request(params);
  } //热门推荐


  getListData(dizhi, callBack) {
    var params = {
      url: 'getList?dizhi=' + dizhi,
      sCallBack: function (res) {
        callBack && callBack(res);
      }
    };
    this.request(params);
  } //限时抢购


  getFlashsale(dizhi, callBack) {
    var params = {
      url: 'getFlashsale?dizhi=' + dizhi,
      sCallBack: function (res) {
        callBack && callBack(res);
      }
    };
    this.request(params);
  } //演唱会


  getconCert(callBack) {
    var params = {
      url: 'conCert',
      sCallBack: function (res) {
        callBack && callBack(res);
      }
    };
    this.request(params);
  } //音乐会


  getdanceMusic(callBack) {
    var params = {
      url: 'danceMusic',
      sCallBack: function (res) {
        callBack && callBack(res);
      }
    };
    this.request(params);
  } //儿童剧


  getChildList(callBack) {
    var params = {
      url: 'getChildList',
      sCallBack: function (res) {
        callBack && callBack(res);
      }
    };
    this.request(params);
  } //搜索页面


  getSearchFor(datarow, callBack) {
    var params = {
      url: 'getSearchFor?datarow=' + datarow,
      sCallBack: function (res) {
        callBack && callBack(res);
      }
    };
    this.request(params);
  } //音乐节


  getYinYueJie(callBack) {
    var params = {
      url: 'getYinYueJie',
      sCallBack: function (res) {
        callBack && callBack(res);
      }
    };
    this.request(params);
  } //体育赛事


  getTiYuSaiShi(callBack) {
    var params = {
      url: 'getTiYuSaiShi',
      sCallBack: function (res) {
        //console.log(res)
        callBack && callBack(res);
      }
    };
    this.request(params);
  } //热门景区大图


  getAttrListFind(callBack) {
    var params = {
      url: 'getAttrListFind',
      sCallBack: function (res) {
        //console.log(res)
        callBack && callBack(res);
      }
    };
    this.request(params);
  } //滑动热门景区


  getAttrListArr(callBack) {
    var params = {
      url: 'getAttrListArr',
      sCallBack: function (res) {
        //console.log(res)
        callBack && callBack(res);
      }
    };
    this.request(params);
  } //首页景区轮播图


  getShuffling(wxprovince, callBack) {
    var params = {
      url: 'getShuffling?wxprovince=' + wxprovince,
      sCallBack: function (res) {
        callBack && callBack(res);
      }
    };
    this.request(params);
  } // 获取用户标识
  // getuser_logo(callBack){
  //   var param = {
  //     url: 'getuser_logo',
  //     sCallBack: function (data) {
  //       callBack && callBack(data);
  //     }
  //   }
  //   this.request(param);
  // }


}

export { Index };